package com.lamp.JsonClass;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.lamp.date.DateEpoch;

import android.util.Log;

public class UserInfo {
	private int statusCode;
	private String emailAddress;
	private String firstName;
	private String lastName;
	private String phone;
	private String address;
	private String gender;
	private Date birthday;
	private String photo;
	private String twitterURL;
	private String facebookURL;
	private String friend;
	private int businessId;
	private String lastSeen;
	private DateEpoch lastSeenTime;
	private int lastSeenId;
	private int score;
	private int kingCount;

	public int getStatusCode() {
		return statusCode;
	}
	public String getEmailAddress() {
		return emailAddress;
	}

	public String getFirstName() {
		return firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public String getPhone() {
		return phone;
	}

	public String getAddress() {
		return address;
	}

	public String getGender() {
		return gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public String getPhoto() {
		return photo;
	}

	public String getTwitterURL() {
		return twitterURL;
	}

	public String getFacebookURL() {
		return facebookURL;
	}

	public String getFriend() {
		return friend;
	}

	public int getBusinessId() {
		return businessId;
	}

	public String getLastSeen() {
		return lastSeen;
	}

	public Date getLastSeenTime() {
		return lastSeenTime;
	}

	public int getLastSeenId() {
		return lastSeenId;
	}

	public int getScore() {
		return score;
	}

	public int getKingCount() {
		return kingCount;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public void setBirthday(String birthday){
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		try {
			this.birthday = dateFormat.parse(birthday);
		} catch (ParseException e) {
			e.printStackTrace();
		}
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public void setTwitterURL(String twitterURL) {
		this.twitterURL = twitterURL;
	}

	public void setFacebookURL(String facebookURL) {
		this.facebookURL = facebookURL;
	}

	public void setFriend(String friend) {
		this.friend = friend;
	}

	public void setBusinessId(int businessId) {
		this.businessId = businessId;
	}

	public void setLastSeen(String lastSeen) {
		this.lastSeen = lastSeen;
	}

	public void setLastSeenTime(String lastSeenTime) {
			this.lastSeenTime = new DateEpoch(lastSeenTime);
	}

	public void setLastSeenId(int lastSeenId) {
		this.lastSeenId = lastSeenId;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public void setKingCount(int kingCount) {
		this.kingCount = kingCount;
	}
}
